# -*- codeing = utf-8 -*-
# @Time : 2022/7/19 14:02
# @Author : ZN
# @Email : 747723508@qq.com
# @File ： urls.py
# @Software: PyCharm
from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import *
urlpatterns = [
    # path('students/',StudentViewSet.as_view({'get':'list','post':'create'})),
    # path('students/<pk>/',StudentViewSet.as_view({'get':'retrieve','put':'update','delete':'destory'}))
]
router = DefaultRouter()
router.register('students',StudentViewSet)
router.register('classes',ClassViewset)
# router.register('messages',MessageViewset)
urlpatterns += router.urls